package exp.libs.envm;

/**
 * <PRE>
 * 枚举类：计算机存储单位
 * </PRE>
 * <br/><B>PROJECT : </B> exp-libs
 * <br/><B>SUPPORT : </B> <a href="https://exp-blog.com" target="_blank">https://exp-blog.com</a>
 * @version   2022-03-06
 * @author    EXP: exp.lqb@foxmail.com
 * @since     JDK 1.8+
 */
public enum StorageUnit {

    BIT("bit", "cell: 1bit = 1b", "位"),

    BYTE("byte", "byte: 1byte = 1B = 8bit", "字节"),

    KB("KB", "kilobyte: 1KB = 1024byte", "千字节"),

    MB("MB", "megabyte: 1MB = 1024KB", "兆字节"),

    GB("GB", "gigabyte: 1GB = 1024MB", "吉字节"),

    TB("TB", "trillionbyte: 1TB = 1024GB", "太字节"),

    PB("PB", "petabyte: 1PG = 1024TB", "拍字节"),

    EB("EB", "exabyte: 1EB = 1024PB", "艾字节"),

    ZB("ZB", "zettabyte: 1ZB = 1024EB", "泽字节"),

    YB("YB", "yottabyte: 1YB = 1024ZB", "尧字节"),

    BB("BB", "brontobyte: 1BB = 1024YB", "亿字节"),

    ;

    public String VAL;

    public String DES_EN;

    public String DES_CH;

    private StorageUnit(String val, String desEn, String desCh) {
        this.VAL = val;
        this.DES_EN = desEn;
        this.DES_CH = desCh;
    }

}
